
<body>
<script type="text/javascript">
$(function(){
	$('#admin_yhgl_addForm').form('submit', {
		url : '${pageContext.request.contextPath}/userAction!add.action',
		success : function(r) {
			var obj = jQuery.parseJSON(r);
			if (obj.success) {
				/*$('#admin_yhgl_datagrid').datagrid('load');*/
				/*$('#admin_yhgl_datagrid').datagrid('appendRow',obj.obj);*/
				$('#admin_yhgl_datagrid').datagrid('insertRow',{
					index:0,
					row:obj.obj
				});
				$('#admin_yhgl_addDialog').dialog('close');
			}
			$.messager.show({
				title : '提示',
				msg : obj.msg
			});
		}
	});
});
</script>
<form id="admin_yhgl_addForm" method="post">
		<table>
			<tr>
				<th>编号</th>
				<td><input name="id" readonly="readonly" />
				</td>
				<th>登录名称</th>
				<td><input name="name" class="easyui-validatebox" data-options="required:true" />
				</td>
			</tr>
			<tr>
				<th>密码</th>
				<td><input name="pwd" type="password" class="easyui-validatebox" data-options="required:true" />
				</td>
				<th>创建时间</th>
				<td><input name="createdatetime" readonly="readonly" />
				</td>
			</tr>
			<tr>
				<th>最后修改时间</th>
				<td><input name="modifydatetime" readonly="readonly" />
				</td>
				<th></th>
				<td></td>
			</tr>
		</table>
	</form>
</body>
